
package com.ea.admin.service;

import com.ea.admin.pojo.po.RedisCode;

public interface VerifyService {
    RedisCode getExistCode(String emailOrPhone);

    void refreshCode(Integer code, String emailOrPhone);

    void saveCode(Integer code, String emailOrPhone);

    /**
     * 验证码检验
     * @return 1 验证码正确 0 验证码错误 -1 验证码超时
     */

    int checkCode(Integer code, String emailOrPhone);
}
